package DOM;

public class Main {
	
	public static void test(){
		Articles.voanews("D:/drop box/Dropbox/i5/semester 2/intern at school/test/voanews");
		Articles.camnews("D:/drop box/Dropbox/i5/semester 2/intern at school/test/camnews");
		Articles.kohsantipheap("D:/drop box/Dropbox/i5/semester 2/intern at school/test/kohsontepheap");
		Articles.rfa("D:/drop box/Dropbox/i5/semester 2/intern at school/test/rfa");
	}
	
	public static void run(){
		Articles.voanews("D:/drop box/Dropbox/i5/semester 2/intern at school/content article/khmer.voanews.com");
		Articles.camnews("D:/drop box/Dropbox/i5/semester 2/intern at school/content article/www.camnews.org");
		Articles.kohsantipheap("D:/drop box/Dropbox/i5/semester 2/intern at school/content article/kosantipheap");
		Articles.rfa("D:/drop box/Dropbox/i5/semester 2/intern at school/content article/www.rfa.org");
		Articles.kptnews("D:/drop box/Dropbox/i5/semester 2/intern at school/content article/kpt-news");
		Articles.fpmonline("D:/drop box/Dropbox/i5/semester 2/intern at school/content article/fpmonline");
		Articles.healthcambodia("D:/drop box/Dropbox/i5/semester 2/intern at school/content article/healthcambodia");
		Articles.ksnnews("D:/drop box/Dropbox/i5/semester 2/intern at school/content article/ksn-news");
	}
	
	/**********************************************/
	public static void main(String [] args){
//		test();
//		run();
//		
//		System.out.println("****************");
//		System.out.println("Error:");
//		System.out.println("Miss category: "+Constant.numNullCategory);
//		System.out.println("Miss content: "+Constant.numNullContent);
//		System.out.println("Miss author: "+Constant.numNullAuth);
//		System.out.println("Miss date: "+Constant.numNullDate);
		
		System.out.println("Start");
		ArticlesFilter.categoryGrouping("D:/drop box/Dropbox/i5/semester 2/intern at school/content article/xml");
		System.out.println("end grouping");
		ArticlesFilter.viewCategoriesInfo("D:/drop box/Dropbox/i5/semester 2/intern at school/content article/category - xml");
		System.out.println("end view info");
	}	
}
